﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="NewBooks.aspx.cs" Inherits="NewBooks" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="Server">
    <div class="horizontal_split">
        <table>
            <tr>
                <td>
                    Category
                </td>
                <td>
                    <asp:DropDownList ID="drpCategory" runat="server" CssClass="horizontal_split">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                    Name
                </td>
                <td>
                    <asp:TextBox ID="txtName" runat="server"  CssClass="horizontal_split"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Author
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="rqvName" runat="server" 
                        ControlToValidate="txtName" ErrorMessage="Please enter Name"></asp:RequiredFieldValidator>
                    <asp:TextBox ID="txtAuthor" runat="server"  CssClass="horizontal_split"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Price
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="rqvAuthor" runat="server" 
                        ControlToValidate="txtAuthor" ErrorMessage="Please enter Author"></asp:RequiredFieldValidator>
                    <asp:TextBox ID="txtPrice" runat="server"  CssClass="horizontal_split"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="txtPrice" ErrorMessage="Please enter price"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    Note
                </td>
                <td>
                    <textarea rows="5" id="taNote" runat="server"></textarea>
                </td>
            </tr>
        </table>
    </div>
    <div class="horizontal_split">
        <asp:Button ID="btnCreate" runat="server" Text="Create" 
            onclick="btnCreate_Click" />
    </div>
</asp:Content>
